/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E588ECD7-406D-4FDE-AB38-7DA5FC5CAEF8"}
 */
function iraDtl(event) {
	forms.recepciones_autoriza_dtl_ind.controller.loadRecords(recep_cabecera_id)
	var $win = application.createWindow('RECEP_DTL',JSWindow.MODAL_DIALOG)
	$win.title = 'Recepcion a Autorizar'
	forms.recepciones_autoriza_dtl_ind.controller.show($win)
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} [firstShow] form is shown first time after load
 * @param {JSEvent} [event] the event that triggered the action
 *
 * @properties={typeid:24,uuid:"AADFDB29-0D09-4031-AB6C-BF78CC078202"}
 * @AllowToRunInFind
 */
function onShow(firstShow, event) {
	controller.find()
	recep_estado = 2
	controller.search()
	
	databaseManager.setAutoSave(false)
}

/**
 * Handle hide window.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"BD3EAB90-8E80-4BC8-94D3-DAC7B5F9AB79"}
 */
function onHide(event) {
	databaseManager.setAutoSave(true)
	return true
}
